package com.wm.ad_navi_new

import android.content.Intent
import android.os.Bundle
import android.widget.Button
import androidx.appcompat.app.AppCompatActivity
import com.wm.ad_navi_new.ui.activity.SettingActivity

class MainActivity : AppCompatActivity() {

    private lateinit var btnSetting: Button

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_main)
        initView()
        initData()
    }

    private fun initView() {
        btnSetting = findViewById(R.id.btn_setting)
    }

    private fun initData() {
        btnSetting.setOnClickListener {
            startActivity(Intent(this, SettingActivity::class.java))
        }
    }

}